#pragma once

// -fno-rtti 
// -lalibabacloud-oss-cpp-sdk -lcurl -lcrypto -lpthread

#include <alibabacloud/oss/OssClient.h>
using namespace AlibabaCloud::OSS;

#include <iostream>
#include <string>

using std::string;
using std::cout;
using std::endl;

class Backup {
public:
    // 从内存中上传 
    static bool backupByMemory(string && content, string objectName);
    
    // 从文件中上传
    static bool backupByFile(string srcpath, string objectName);
    
    static void start();
    static void stop();

private:

};

